#include "ConfirmDeleteListener.h"

ConfirmDeleteListener::ConfirmDeleteListener(TextScrollBar* textScrollBar){
		this->textScrollBar = textScrollBar;
}
ConfirmDeleteListener::~ConfirmDeleteListener(){
	this->textScrollBar = NULL;
}

void ConfirmDeleteListener::execute(){
	if (!this->textScrollBar->deleteSelectedElement()){
		Logger::log("ConfirmDeleteListener", "execute", "No se borró ningún elemento");
	}
}
